package com.qd.common.panda.domain.entity.carpark.calculate;

import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 优惠价
 *
 * @author sjk
 * @create 2022-10-11 10:41
 * @since 1.0.0
 */
@Data
@Accessors(chain = true)
public class CalculatePriceDetailDTO {
    /**
     * 原价
     */
    private BigDecimal price;
    /**
     * 优惠价
     */
    private BigDecimal calculatePrice;
    /**
     * 优惠金额
     */
    private BigDecimal discountAmount;
    /**
     * 服务费
     */
    private BigDecimal serviceFee;
    /**
     * 平台标记
     */
    private Integer platform;
    /**
     * 折扣
     */
    private Double customerDiscount;
    /**
     * 优惠券种类
     */
    private String preferentialCategory;
    /**
     * 标记
     */
    private Integer flag;

    public void freeData(){
        this.price = null;
        this.calculatePrice = null;
        this.discountAmount = null;
        this.serviceFee = null;
        this.platform = null;
        this.customerDiscount = null;
        this.preferentialCategory = null;
        this.flag = null;
    }
}